package com.ruoyi.web.controller.regulator.stats;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.regulator.domain.pojo.NjtRegionInfo;
import com.ruoyi.regulator.service.NjtProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/nongjt/region")
public class NjtRegionController extends BaseController {

    @Autowired
    private NjtProvincesService njtProvincesService;

    /**
     * 查询地区信息列表（三表联查）
     */
    @GetMapping("/list")
    public AjaxResult list(NjtRegionInfo regionInfo) {
        List<NjtRegionInfo> list = njtProvincesService.getRegionInfoList(regionInfo);
        return AjaxResult.success(list);
    }
}
